package com.totoro.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.totoro.dao.BaseHibernateDao;
import com.totoro.dao.RoleDao;
import com.totoro.domain.Role;

@Transactional
@Service
public class RoleService extends BaseService<Role, Integer>{
	
	private RoleDao roleDao;

	@Autowired
	@Override
	public void setBaseDao(BaseHibernateDao<Role, Integer> roleDao) {
		// TODO Auto-generated method stub
		this.baseDao = roleDao;
		this.roleDao = (RoleDao) roleDao;
	}

}
